package com.angel.architecture.daos;


import java.util.Collection;

import com.angel.architecture.persistence.beans.Role;
import com.angel.architecture.persistence.beans.User;
import com.angel.architecture.persistence.beans.UserRoles;
import com.angel.architecture.persistence.ids.ObjectId;
import com.angel.dao.generic.interfaces.GenericDAO;


public interface UserRoleDAO extends GenericDAO<UserRoles, ObjectId> {

    public UserRoles findUniqueByUserAndRole(User user, Role role) ;

    public Collection<UserRoles> findAllByRole(Role role) ;

    public Collection<UserRoles> findAllByUser(User user) ;

    public void deleteUserRoles(UserRoles userRoles) ;

    public boolean exist(User user,Role role);
}
